/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package manufacturerBean;

import DBConnection.ATeamObject;
import java.util.Collection;
import java.rmi.*;

import javax.ejb.*;

/**
 * Home Interface for ManufacturerBean
 * @author Konstantin
 * @see ManufacturerBean
 */
public interface ManufacturerHome extends EJBHome{
    
    /**
     * Find manufacturer by id.
     * @return Remote Interface
     * @throws FinderException
     * @throws RemoteException 
     * @see FinderException
     * @see RemoteException
     */
    public Manufacturer findByPrimaryKey(Integer primaryKey) 
            throws RemoteException, FinderException;
    
    /**
     * Create new manufacturer
     * @param ato Parameters of new manufacturer
     * @return Remote Interface
     * @throws CreateException
     * @throws RemoteException
     * @see CreateException
     * @see RemoteException
     */
    public Manufacturer create(ATeamObject ato)
            throws RemoteException, CreateException;
    
    /**
     * Find manufacturer by name.
     * @return Collection of Remote Interfaces
     * @throws FinderException
     * @throws RemoteException 
     * @see FinderException
     * @see RemoteException
     */
    public Collection findByName(ATeamObject ato)
            throws RemoteException, FinderException;
    
    /**
     * Find all manufacturer in database.
     * @return Collection of Remote Interfaces
     * @throws FinderException
     * @throws RemoteException 
     * @see FinderException
     * @see RemoteException
     */
    public Collection findAll()
            throws RemoteException, FinderException;
    
    /**
     * Find manufacturer by objectDescription.
     * @return Collection of Remote Interfaces
     * @throws FinderException
     * @throws RemoteException 
     * @see FinderException
     * @see RemoteException
     */
    public Collection findByObjectDescription(ATeamObject ato)
            throws RemoteException, FinderException;
}

